package com.ysd.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ysd.entity.User;
import com.ysd.service.UserByIdService;

@Controller
public class UserByIdController {

	@Autowired
	private UserByIdService userByIdService;
	
	
	@RequestMapping("getByIdUser")
	@ResponseBody
	public User getByIdUser(int uid) {
	User	u=userByIdService.findByIdUser(uid);
		
		return u;
	}
	
	
}
